﻿using System;
using Mono.Cecil.Metadata;

namespace Mono.Cecil
{
	// Token: 0x020000B9 RID: 185
	public sealed class PinnedType : TypeSpecification
	{
		// Token: 0x170001FD RID: 509
		// (get) Token: 0x0600079A RID: 1946 RVA: 0x00009C40 File Offset: 0x00007E40
		// (set) Token: 0x0600079B RID: 1947 RVA: 0x00002AA0 File Offset: 0x00000CA0
		public override bool IsValueType
		{
			get
			{
				return false;
			}
			set
			{
				throw new InvalidOperationException();
			}
		}

		// Token: 0x170001FE RID: 510
		// (get) Token: 0x0600079C RID: 1948 RVA: 0x0000A3A0 File Offset: 0x000085A0
		public override bool IsPinned
		{
			get
			{
				return true;
			}
		}

		// Token: 0x0600079D RID: 1949 RVA: 0x00004B2C File Offset: 0x00002D2C
		public PinnedType(TypeReference type) : base(type)
		{
			Mixin.CheckType(type);
			this.etype = Mono.Cecil.Metadata.ElementType.Pinned;
		}
	}
}
